package com.gsnd.briuppts.service.impl;

import com.gsnd.briuppts.entity.VO.CountVO;
import com.gsnd.briuppts.mapper.AnalysisMapper;
import com.gsnd.briuppts.service.AnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AnalysisServiceImpl implements AnalysisService {
    @Autowired
    AnalysisMapper analysisMapper;
    @Override
    public CountVO findAnalysisCount() {
        CountVO countVO = new CountVO();
        String[] name = {"栏舍","栏圈","动物","冷库","用户"};
        String[] value = analysisMapper.count();
        countVO.setName(name);
        countVO.setValue(value);
        return countVO;
    }
}
